import request from '@/utils/request'
import qs from 'qs'

export const addUserImage = (module: any) =>
  request({
    url: '/edm-admin/imageGallery',
    method: 'post'
  })

export const queryUserImages = (params: any) =>
  request({
    url: '/edm-admin/imageGallery/imageGallerys',
    method: 'get',
    params
  })

export const batchDeleteImage = (params: any) =>
  request({
    url: '/edm-admin/imageGallery/batchDelete',
    method: 'delete',
    params,
    paramsSerializer: params => {
      return qs.stringify(params, { indices: false })
    }
  })
